Linear Equation from Graph